package service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.Backend_userDaoMapper;
import entity.Backend_user;
import service.Backend_userService;

@Service("backend_user")
public class Backend_userSerciceImpl implements Backend_userService {
	@Autowired
	private Backend_userDaoMapper daoMapper;
	
	/**
	 * 查询后台管理员用户名
	 */
	@Override
	public Backend_user queryUserCode(String userCode) {
		
		return daoMapper.queryUserCode(userCode);
	}
	
	/**
	 * 登录后台管理系统
	 */
	@Override
	public Backend_user loginBackend(String userCode, String userPassword) {
		
		return daoMapper.loginBackend(userCode, userPassword);
	}

}
